<template>
  <div>
    <h4>{{this.goodsDetails.title}}</h4>
    <hr />
    <div class="goodsDesc-content" v-html="goodsDetails.content"></div>
  </div>
</template>

<script>
export default {
  name: '',
  data () {
    return {
      value: 1,
      goodsDetails: {}
    }
  },
  created () {
    // 获取图文介绍
    this.getGoodsList()
  },
  methods: {
    async getGoodsList () {
      const { data: res } = await this.$http.get(`/api/goods/getdesc/${this.$route.params.id}`)
      this.goodsDetails = res.message[0]
      console.log(this.goodsDetails)
    }
  }
}
</script>

<style lang="less" scoped>
h4 {
  color: rgb(83, 83, 187);
}
</style>
